package com.six.vo;

import java.sql.Date;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 系统用户
 * 
 */
@Entity
@Table(name="WMS_T_USER")
public class User {
	 private int userID;// VARCHAR(16) 用户编号
	 private String userName;// NVARCHAR2(60) 用户姓名
	 private String userAccount;// NVARCHAR2(60) 登录帐号
	 private String userPwd;// NVARCHAR2(60) 登录密码
	 private String userType;// VARCHAR(16) 用户类型
	 private String userSex;// VARCHAR(16) 性别
	 private String userNote;// NVARCHAR2(512) 备注
	 private Date userEditTime;// DATE 最后修改日期
	 private int userIsDel;// SMALLINT 是否已被删除
	 private Set<DBNeaten> dbNeaten;
	 private Set<Bill> bill;
	 private Set<BillDetail> billDetail;
	 private Set<Wkstn> wkstn;
	 private Set<Transfer> transfer;
	 private Set<Movement> movement;
	 
	 public User() {
		super();
	}
	public User(int userID, String userName, String userAccount,
			String userPwd, String userType, String userSex, String userNote,
			Date userEditTime, int userIsDel, Set<DBNeaten> dbNeaten,
			Set<Bill> bill, Set<BillDetail> billDetail, Set<Wkstn> wkstn,
			Set<Transfer> transfer, Set<Movement> movement) {
		super();
		this.userID = userID;
		this.userName = userName;
		this.userAccount = userAccount;
		this.userPwd = userPwd;
		this.userType = userType;
		this.userSex = userSex;
		this.userNote = userNote;
		this.userEditTime = userEditTime;
		this.userIsDel = userIsDel;
		this.dbNeaten = dbNeaten;
		this.bill = bill;
		this.billDetail = billDetail;
		this.wkstn = wkstn;
		this.transfer = transfer;
		this.movement = movement;
	}
	@Id
	 @GeneratedValue
	public int getUserID() {
		return userID;
	}
	public void setUserID(int userID) {
		this.userID = userID;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserAccount() {
		return userAccount;
	}
	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}
	public String getUserPwd() {
		return userPwd;
	}
	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	public String getUserSex() {
		return userSex;
	}
	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}
	public String getUserNote() {
		return userNote;
	}
	public void setUserNote(String userNote) {
		this.userNote = userNote;
	}
	public Date getUserEditTime() {
		return userEditTime;
	}
	public void setUserEditTime(Date userEditTime) {
		this.userEditTime = userEditTime;
	}
	public int getUserIsDel() {
		return userIsDel;
	}
	public void setUserIsDel(int userIsDel) {
		this.userIsDel = userIsDel;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<DBNeaten> getDbNeaten() {
		return dbNeaten;
	}
	public void setDbNeaten(Set<DBNeaten> dbNeaten) {
		this.dbNeaten = dbNeaten;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<Bill> getBill() {
		return bill;
	}
	public void setBill(Set<Bill> bill) {
		this.bill = bill;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<BillDetail> getBillDetail() {
		return billDetail;
	}
	public void setBillDetail(Set<BillDetail> billDetail) {
		this.billDetail = billDetail;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<Wkstn> getWkstn() {
		return wkstn;
	}
	public void setWkstn(Set<Wkstn> wkstn) {
		this.wkstn = wkstn;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<Transfer> getTransfer() {
		return transfer;
	}
	public void setTransfer(Set<Transfer> transfer) {
		this.transfer = transfer;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<Movement> getMovement() {
		return movement;
	}
	public void setMovement(Set<Movement> movement) {
		this.movement = movement;
	}
	@Override
	public String toString() {
		return "User [userID=" + userID + ", userName=" + userName
				+ ", userAccount=" + userAccount + ", userPwd=" + userPwd
				+ ", userType=" + userType + ", userSex=" + userSex
				+ ", userNote=" + userNote + ", userEditTime=" + userEditTime
				+ ", userIsDel=" + userIsDel + ", dbNeaten=" + dbNeaten
				+ ", bill=" + bill + ", billDetail=" + billDetail + ", wkstn="
				+ wkstn + ", transfer=" + transfer + ", movement=" + movement
				+ "]";
	}
		
}
